package ExpressThree;

import java.util.Objects;

//线程结点
public class ProcessNode {
    private final String pid;
    ProcessNode(String pid){
        this.pid=pid;
    }

    public String getPid() {
        return pid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        ProcessNode that = (ProcessNode) o;
        return Objects.equals(pid, that.pid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pid);
    }

    @Override
    public String toString() {
        return "ProcessNode{" +
                "pid='" + pid + '\'' +
                '}';
    }
}
